package com.heimao.dao.userMapper;


import com.heimao.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {
     List<User> getUserList();

     List<User> getUserByParam(Map<String,Object> map);

     User getUser(@Param("id") int id);

     int addUser(User user);

     int addUsers(Map<String,Object> map);

     int updateUser(User user);

     int deleteUser(int id);


     List<User> getUserAndRole(@Param("userId") int id);
}
